package com.drugmanage.dao;

import com.drugmanage.Base.BaseDao;
import com.drugmanage.entity.UserRole;

import java.util.List;

public interface UserRoleDao extends BaseDao<UserRole>{

    int save(UserRole record);

    int saveSte(UserRole record);

    UserRole get(Integer id);

    int updateSte(UserRole record);


    List<Integer> queryRoleIdsByUserId(Integer userId);

    int queryUserRolesByRoleId(Integer roleId);

    Integer deleteUserRolesByRoleId(Integer roleId);

    Integer queryUserRolesByUserId(Integer userId);

    int deleteUserRolesByUserId(Integer userId);
}